//
//  Detail_Header_Cell.m
//  XiAnJMApp
//
//  Created by Kai Wang on 2017/5/23.
//  Copyright © 2017年 Kai Wang. All rights reserved.
//

#import "Detail_Header_Cell.h"
#import "Common.h"
@interface Detail_Header_Cell ()

@property (nonatomic,strong)UIView * view_left2;



/*
 * view_left1
 */
@property (nonatomic,strong)UIView * view_left1;
@property (nonatomic,strong)UILabel* lab_left_number1;
@property (nonatomic,strong)UILabel* lab_left_number2;
@property (nonatomic,strong)UILabel* lab_left_number3;


/*
 * view_right
 */
@property (nonatomic,strong)UIView * view_right;
//最高
@property (nonatomic,strong)UILabel* lab_Max;
@property (nonatomic,strong)UILabel* lab_Max_number;
//卖
@property (nonatomic,strong)UILabel* lab_Sell;
@property (nonatomic,strong)UILabel* lab_Sell_number;
//数量
@property (nonatomic,strong)UILabel* lab_MaxSell_num;

@property (nonatomic,strong)UIView *view_MaxProgress;

//最低
@property (nonatomic,strong)UILabel* lab_Min;
@property (nonatomic,strong)UILabel* lab_Min_number;
//买
@property (nonatomic,strong)UILabel* lab_Buy;
@property (nonatomic,strong)UILabel* lab_Buy_number;
//数量
@property (nonatomic,strong)UILabel* lab_MinBuy_num;


@end

@implementation Detail_Header_Cell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        self.backgroundColor = [UIColor whiteColor];
        [self initView];
    }
    return self;
}

- (void)initView{
    
    self.backgroundColor=[UIColor  orangeColor];

    
    _view_left1=[[UIView alloc]init];
    _view_left1.backgroundColor=[UIColor whiteColor];
    _view_left1.layer.cornerRadius=5;
    _view_left1.layer.borderWidth = 1;
    _view_left1.layer.borderColor = [[UIColor grayColor] CGColor];
    [self addSubview:_view_left1];
    [_view_left1 mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(self.mas_left).offset(10);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(80);
//        make.bottom.equalTo(self.mas_bottom);
        make.top.equalTo(self.mas_top).offset(10);
        
    }];
    
    _view_left2=[[UIView alloc]init];
    _view_left2.layer.cornerRadius=5;
    [self addSubview:_view_left2];
    _view_left2.layer.cornerRadius=5;
    _view_left2.backgroundColor=RGB(53, 131, 218);
    [_view_left2 mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(self.mas_left).offset(10);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(40);
        //        make.bottom.equalTo(self.mas_bottom);
        make.top.equalTo(_view_left1.mas_bottom).offset(10);
        
    }];
    
    _view_right=[[UIView alloc]init];
    _view_right.backgroundColor=[UIColor whiteColor];
    _view_right.layer.cornerRadius=5;
    _view_right.layer.borderWidth = 1;
    _view_right.layer.borderColor = [[UIColor grayColor] CGColor];
    [self addSubview:_view_right];
    [_view_right mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(_view_left2.mas_right).offset(10);
        make.bottom.equalTo(self.mas_bottom).offset(-10);
        make.top.equalTo(self.mas_top).offset(10);
        make.right.equalTo(self.mas_right).offset(-10);

    }];
    
}
+(CGFloat)computeHeight:(id)info{
    return 150;
}
-(void)relayOutUIWithModel:(id)model{
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
